package com.wang;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 注解驱动
 */
public class SpringAnnotationDriverTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.register(SpringAnnotationDriverTest.class);
        context.refresh();
        System.out.println(context.getBean("springAnnotationDriverTest"));
    }
}
